package com.ssqdx.mapper;

import com.ssqdx.pojo.Student;
import org.mybatis.spring.SqlSessionTemplate;

import java.util.List;

/**
 * @author asus
 * @date 2021/6/8 18:52:24
 * @description
 */
public class StudentMapperImpl implements StudentMapper {
    private SqlSessionTemplate sqlSession;
    public void  setSqlSession(SqlSessionTemplate sqlSession){
        this.sqlSession=sqlSession;
    }
    public List<Student> selectStudent() {
        StudentMapper mapper = sqlSession.getMapper(StudentMapper.class);
        return  mapper.selectStudent();
    }
}
